package edu.scau.divineplace.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * @Author: x1aolone
 * @Date: 2020/8/25 15:51
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IsReadEnum implements BaseEnum{
    /**
     *
     */
    IS_READ_TRUE(1, "已读"),
    IS_READ_FALSE(0, "未读");


    /**
     * EnumValue标记数据库里面存的是type
     */
    @EnumValue
    @Getter
    private Integer type;
    @Getter private String description;

    IsReadEnum(Integer type, String description) {
        this.type = type;
        this.description = description;
    }

}
